<?php
$this->breadcrumbs=array(
	'Matches'=>array('index'),
	$model->_id,
);

$this->menu=array(
	array('label'=>'List Match', 'url'=>array('index')),
	array('label'=>'Create Match', 'url'=>array('create')),
	array('label'=>'Update Match', 'url'=>array('update', 'id'=>$model->_id)),
	array('label'=>'Delete Match', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->_id),'confirm'=>'Are you sure you want to delete this item?')),
	array('label'=>'Manage Match', 'url'=>array('admin')),
	array('label'=>'Add Details', 'url'=>array('detail/add','match_id'=>$model->_id)),
	array('label'=>'Mass Add Details', 'url'=>array('detail/massAdd','match_id'=>$model->_id)),
);
?>

<h1>View match <?php echo $model->fullMatch; ?></h1>

<?php $this->widget('zii.widgets.CDetailView', array(
	'data'=>$model,
	'attributes'=>array(
		'_id',
		'datetime',
		'tournament',
		'stadium',
		'channel',
		'hometeam',
		'awayteam',
		'homegoals',
		'awaygoals',
		'updated',
		'period',
	),
)); ?>

<br />
<h3>Match Details</h3>
<?php echo $this->renderPartial('application.views.detail._timeline', array('models'=>$model->details,"edit"=>false)); ?>
